Magic Clothing: Controllable Garment-Driven Image Synthesis

Source Code

1. Installation

conda create -n magicloth python==3.10
conda activate magicloth
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2
pip install -r requirements.txt

2. Inference

1) Python demo

python inference.py --prompt [***prompt describing characters***] --cloth_path [your cloth path] --model_path [your ***checkpoints*** path] --enable_cloth_guidance

2) Gradio demo

python gradio_generate.py --model_path [your ***checkpoints*** path] --enable_cloth_guidance

#with ControlNet-Openpose
python gradio_controlnet_openpose.py --model_path [your ***checkpoints*** path] --enable_cloth_guidance
#with ControlNet-Inpaint
python gradio_controlnet_inpainting.py --model_path [your ***checkpoints*** path] --enable_cloth_guidance
#with IP-Adapter-FaceID
python gradio_ipadapter_faceid.py --model_path [your ***checkpoints*** path] --enable_cloth_guidance
#with IP-Adapter-FaceID and ControlNet-Openpose
python gradio_ipadapter_openpose.py --model_path [your ***checkpoints*** path] --enable_cloth_guidance
